package wku.wis.ideyeah.controller;

import javax.faces.event.ActionEvent;

import wku.wis.ideyeah.model.User;

public class UserController {

	public UserController(){
		
	}
	
	
	private User user1;
	
	public User getUser1() {
		return user1;
	}

	public void setUser1(User user1) {
		this.user1 = user1;
	}

	
	public void submit(ActionEvent e){
		user1=new User();
		/*
		 * code to copy the user details into database
		 * */
		try{
			System.out.println(e.getComponent().getClientId().toString());
			
		System.out.println("success");
		}catch(Exception e1){
			System.out.println("Exception Caught in usercontroller.java"+e1);
			//return "error";
		}
	}
	
}
